package com.wanli.storemobile.retorfit_manager;


import androidx.annotation.NonNull;

import com.orhanobut.logger.Logger;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 *
 */

public class HttpHeaderInterceptor implements Interceptor {
    @Override
    public Response intercept(@NonNull Chain chain) throws IOException {
//        String token = SPManager.getInstance().getToken();
        Request request = chain.request()//
                .newBuilder()//
//                .addHeader("Authorization", "Bearer " + token)//
                .build();

        Logger.i("url=" + request.url().toString());

        return chain.proceed(request);
    }
}
